package com.yunxiao.cloud.job.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yunxiao.cloud.job.entity.JobLogQueryInfo;
import com.yunxiao.cloud.job.entity.ScheduleJobLog;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 定时任务日志 服务类
 * </p>
 *
 * @author yunxiao
 * @since 2020-01-09
 */
public interface ScheduleJobLogService extends IService<ScheduleJobLog> {
    /**
     * 保存
     *
     * @param record
     * @return
     */
    int insert(ScheduleJobLog record);

    /**
     * 根据时间清理日志表
     * @param date
     */
    void deleteByTime(Date date);

    /**
     * 查询
     * @param info
     * @return
     */
    List<ScheduleJobLog> queryJobLogs(JobLogQueryInfo info);
}
